package teach.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import teach.aistar.model.entity.CarDetail;
import teach.aistar.model.entity.UserDetail;

import java.util.List;

public interface UserDetailMapper {
    @Select("select * from user_detail")
    List<UserDetail> selectDetailAll();


    int deleteByCuId(int id);


    //用户详情表多条件查询
    List<UserDetail> findByConditional(UserDetail userDetail);

    //插入用户信息
    int insert(UserDetail userDetail);

    //聊天查询
    @Select("select * from user_detail where u_id=#{uId}")
    UserDetail selectById(@Param("uId") int uId);

    //更新用户信息
    int updateCustomer(UserDetail userDetail);


}
